package homes

import home.HomeZombies
import busqueda.ZombieBusqueda
import dominio.Zombie
import java.util.ArrayList

class HomeZombiesG {
	
	def zombies = new ArrayList<Zombie>()
	def home = new HomeZombies()
	
		static def instance
		
		static def getInstance() {
			if (instance == null) {
				instance = new HomeZombiesG()
			}
			instance
		}
		
		HomeZombiesG() {
			zombies = home.getZombies()
		}
	
		def generarZombies(){
			//
		}
		
		def getZombies(ZombieBusqueda zombieBusqueda) {
			home.search(zombieBusqueda.nombreBusqueda)
		}
			
		
	}
	